toPositiveIntOrNull

@SinceKotoolsTypes(version = "1.1")
fun Int.toPositiveIntOrNull(): PositiveInt?

Returns this value as a positive int, or returns null if this value is strictly negative.